using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.SharePoint;

namespace IWCommunity.Blogs.WebControls
{
    public class SingleListQuery : BaseQueryControl
    {
        private string _listName;

        public virtual string ListName
        {
            get { return _listName; }
            set { _listName = value; }
        }

        protected override void OnInit(EventArgs e)
        {
            RowLimit = 5000;

            SPList oList = Web.Lists[ListName];

            ListsXML = string.Format("<Lists><List ID='{0}'/></Lists>", oList.ID.ToString());

            base.OnInit(e);
        }
    }
}
